package cn.yj.common.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 退款接口参数
 *
 * @author 永健
 * @since 2022-02-20 13:24
 */
public class RefundParams implements Serializable {

    /**
     * 商户订单号
     */
    private String outTradeNo;


    /**
     * 商户退款订单号;
     * 注：针对同一次退款请求，如果调用接口失败或异常了，重试时需要保证退款请求号不能变更，防止该笔交易重复退款。支付宝会保证同样的退款请求号多次请求只会退一次。
     */
    private String outRefundNo;

    /**
     * 退款金额
     */
    private BigDecimal refundAmount;


    private String reason;

    /**
     * 愿订单金额
     */
    private BigDecimal sourceAmount;

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public RefundParams setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
        return this;
    }

    public BigDecimal getRefundAmount() {
        return refundAmount;
    }

    public RefundParams setRefundAmount(BigDecimal refundAmount) {
        this.refundAmount = refundAmount;
        return this;
    }

    public String getOutRefundNo() {
        return outRefundNo;
    }

    public RefundParams setOutRefundNo(String outRefundNo) {
        this.outRefundNo = outRefundNo;
        return this;
    }

    public BigDecimal getSourceAmount() {
        return sourceAmount;
    }

    public RefundParams setSourceAmount(BigDecimal sourceAmount) {
        this.sourceAmount = sourceAmount;
        return this;
    }

    public String getReason() {
        return reason;
    }

    public RefundParams setReason(String reason) {
        this.reason = reason;
        return this;
    }
}
